package io.renren.vo;

/**
 * Created by ThinkPad on 2018/10/17.
 */
public class FileServerResponse {

    private boolean success;

    /**
     * example:group1/M00/00/00/rBBlFVvGs0eAb38JAAAAXF9PaVc044.txt
     */
    private String filePath;

    private String fileName;

    private String fileType;

    /**
     * example:file.ehualu.com:80/group1/M00/00/00/rBBlFVvGs0eAb38JAAAAXF9PaVc044.txt?token=e4f124b40de6e074757f48421f2d38ed&ts=1539748682
     */
    private String httpUrl;

    /**
     * example:token=e4f124b40de6e074757f48421f2d38ed&ts=1539748682
     */
    private String token;

    public FileServerResponse(){}

    public FileServerResponse(boolean success) {
        super();
        this.setSuccess(success);
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getHttpUrl() {
        return httpUrl;
    }

    public String getRealHttpUrl(){
        return "http://"+httpUrl;
    }

    public void setHttpUrl(String httpUrl) {
        this.httpUrl = httpUrl;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
